//hbox = document.createElementNS(XUL_NS,"hbox");
//hbox.setAttribute("style","padding:5px 5px 5px 5px;");
//image = document.createElementNS(XUL_NS,"image");// 创建 XUL
//													// 图像元素来显示图片
//image.setAttribute("src",window.arguments[0]);
													// 复选框元素以供用户选择
//checkbox.setAttribute("imageUrl",imageSrc);

//hbox.appendChild(image);

alert(window.arguments[0]);
var container;
var img;
var txtnode;
function init(){
 	/*
   container = document.getElementById("picsave.picShow.picBox");
   img = document.createElementNS("http://www.w3.org/1999/xhtml","img");
   //txtnode = document.createTextNode("This is text that was constructed dynamically with createElementNS and createTextNode then inserted into the document using appendChild.");
   //newdiv.appendChild(txtnode);
   
   img.setAttribute("src",window.arguments[0]);
   if(window.arguments[1]>window.arguments[2]){
   		width = 592;
   		height = window.arguments[2]*width/window.arguments[1];
   		//img.setAttribute("height",height);
   		img.setAttribute("width",width);
   		//alert(height);
   		marginTop = parseInt((width-height)/2);
   		//img.setAttribute("style","margin:"+marginTop+"px 0 0 0;width:"+width+"px;height:"+height+"px;");
   		img.setAttribute("style","margin:"+marginTop+"px 0 0 0;");
   }else{
   	
   		height = 592;
   		img.setAttribute("height",height);
   		width = window.arguments[1]*height/window.arguments[2];
   		//alert(width);
   		img.setAttribute("width",width);
   		marginLeft = parseInt((height-width)/2);
   		//img.setAttribute("style","margin:0 0 0 "+marginLeft+"px;width:"+width+"px;height:"+height+"px;");
   		img.setAttribute("style","margin:0 0 0 "+marginLeft+"px;");
   		
   }
   
   container.appendChild(img);
   */
 }